package pl.prv.polanie.client.dto;

import com.google.gwt.user.client.rpc.IsSerializable;

public class LecturerDTO extends Object implements IsSerializable {

	private long id;
	private String name;
	private String surname;
	private AcademicTitleDTO academicTitle;
	


	public LecturerDTO() {}
	
	public LecturerDTO(String name, String surname) {
		this.name = name;
		this.surname = surname;
	}
	public long getId() {
		return id;
	}
	protected void setId(long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSurname() {
		return surname;
	}
	public void setSurname(String surname) {
		this.surname = surname;
	}
	
	public AcademicTitleDTO getAcademicTitle() {
		return academicTitle;
	}

	public void setAcademicTitle(AcademicTitleDTO academicTitle) {
		this.academicTitle = academicTitle;
	}
	
	public String toString() {
		String result = "" +
			"[ " + LecturerDTO.class + "]" +
			"name: " + name + 
			", surname: " + surname +
			", academicTitle: " + academicTitle.getTitle()
			;
		return result;
	}
	
	public String toLabel() {
		String r = academicTitle.getTitle() + " " + surname;
		return r;
	}
	
}
